/**
 * 
 */
package com.bestbuy.serviceimple;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bestbuy.dao.CommentDao;
import com.bestbuy.pojo.Comment;
import com.bestbuy.service.CommentService;

/**
 * @author ThanhNgo
 *
 */
@Service
public class CommentServiceImpl implements CommentService {
	@Autowired
	private CommentDao commentDAO;
	
	@Transactional
	public void addComment(Comment comment) {
		// TODO Auto-generated method stub
		commentDAO.addComment(comment);
	}

	@Transactional
	public List<Comment> getListComment(String idProduct) {
		// TODO Auto-generated method stub
		return commentDAO.getListComment(idProduct);
	}

}
